package com.ctshk.rpc.order.bus.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.order.bus.dto.BusOrderReceiptInfoDTO;
import com.ctshk.rpc.order.bus.req.BusOrderReceiptReq;

/**
 * <p>
 * 巴士订单收据 服务类
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-18
 */
public interface IBusOrderReceiptService{

    /**
     * 保存订单收据
     * @param trainOrderReceiptReq
     * @param user
     * @return
     */
    Result saveTrainReceipt(BusOrderReceiptReq trainOrderReceiptReq, TokenUser user);

    /**
     * 根据订单id查询订单详细信息
     *
     * @param orderId 订单id
     * @return 订单消息
     */
    Result<BusOrderReceiptInfoDTO> queryOrderReceiptInfo(Long orderId);
    
    /**
     * 收据发送邮件
     * @param orderId
     * @return
     */
    Result<Void> sendEmailReceipt(Long orderId);
}
